import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'file-matching',
      component: require('@/views/FileMatching').default,
    },
    {
      path: '/process',
      name: 'img-process',
      component: require('@/views/process/Process').default,
    },
    {
      path: '/tinypng',
      name: 'img-process',
      component: require('@/views/process/TinyPng/index').default,
    },
    {
      path: '/cutimg',
      name: 'img-cut',
      component: require('@/views/process/CutImg/index').default,
    },
    {
      path: '/watermarkimg',
      name: 'img-watermark',
      component: require('@/views/process/Watermark/index').default,
    },
    {
      path: '*',
      redirect: '/',
    },
  ],
});
